package com.kingyun.gpsinspection.purificationservice.dao.mapper.som;


import com.kingyun.gpsinspection.purificationservice.facade.model.som.OperatingUnitStep;

import java.util.List;
import java.util.Map;

public interface OperatingUnitStepMapper {

    /**
     * 删除操作单元步骤
     * @param stepId
     * @return
     */
    int deleteByPrimaryKey(String stepId);

    /**
     * 新增操作单元步骤
     * @param record
     * @return
     */
    int insert(OperatingUnitStep record);

    /**
     * 新增操作单元步骤
     * @param record
     * @return
     */
    int insertSelective(OperatingUnitStep record);

    /**
     * 根据ID查询操作单元步骤
     * @param stepId
     * @return
     */
    OperatingUnitStep selectByPrimaryKey(String stepId);

    /**
     * 修改操作单元步骤
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(OperatingUnitStep record);

    /**
     * 修改操作单元步骤
     * @param record
     * @return
     */
    int updateByPrimaryKey(OperatingUnitStep record);

    /**
     * 根据ID查询操作单元步骤列表
     * @param map
     * @return
     */
    List<OperatingUnitStep> selectById(Map map);
}